package mjc.tds;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;

public class TDC extends TDS<String,Info_Classe> {

	public TDC() {
		super();
	}

	public TDC(TDC parente) {
		super(parente);
	}

	public void writeImports(String nomFichier){
		try {
			PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(nomFichier+".imports")));
		    for(Iterator<String> iter = this.table.keySet().iterator() ; iter.hasNext() ;){
		    	pw.println(iter.next());
		    }
	    	
		    pw.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
